#include "stdafx.h"

#include "RuleModel.h"
#include "SessionMgr.h"

#include "ParallelSystem.h"
using namespace _PARALLEL_SYSTEM_;

int _tmain(int argc, _TCHAR* argv[])
{
	::srand( ::GetTickCount() );
	PARALLEL_SYSTEM.Initialize();

	Put( L"initialize rule model file!!" );

	CRuleModel* model = CRuleModel::GetInstance();
	if( model->Initialize() == false )
	{
		::printf( "failed to read rules..\n");
		return -1;
	}

	if( CSessionMgr::GetInstance()->Initialize(model) == false )
	{
		::printf( "failed to initialize session group\n");
		return -1;
	}

	CSessionMgr::s_SessionMgr->LetsRock();

	::getchar();
	return 0;
}

